package com.yc.common.expection;


import com.yc.common.enums.ResultCode;

/**
 * @author zhuzy
 * @version 1.0
 * @description ArgumentException 参数异常
 * @create 2022/7/11 10:16
 */
public class ArgumentException extends BaseException {
    public ArgumentException(String msg) {
        this.msg = msg;
        this.code = ResultCode.BAD_REQUEST.getCode();
    }

    public ArgumentException() {
        this.msg = ResultCode.BAD_REQUEST.getMsg();
        this.code = ResultCode.BAD_REQUEST.getCode();
    }
}
